<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>拆分水果字符串</title>
</head>
<body>
<script>
    var myListString = 'apple, 0.99, banana, 0.5, peach, 0.25, oragne, 0.75';
    var theRegExp = /[^a-z]+/i;
    var myFruitArray = myListString.split(theRegExp);
    document.write(myFruitArray.join('<br/>'));
</script>
</body>
</html>